Link to this headingAddresses

Link to this headingHow addresses are created

RPL Algorithm

Using Crate:

address = keccak256(rpl.encode([sender_address, nonce]) )[:12]

ERROR: Since Nonce is just an increasing value for the number of contracts deployed it is trival to figure out the next address where a contract will be deployed. This can lead to an attacker trying to deploy to this address first.

Using Crate2:

address = keccak256( b"\xFF" + sender_address + random_32bit_salt + contract_bytecode )[:12]